{include file="common/header" /}
<div class="main layui-clear">
    <div class="wrap">
        <div class="content">
            <div class="fly-tab">
                <div class="layui-tab layui-tab-brief">
                    <ul class="layui-tab-title">
                        <li><a href="{:url('index/index/index')}" class="layui-this">首页</a></li>
                        <li><a href="{:url('index/forum/index')}">全部帖</a></li>
                        <li><a href="{:url('index/forum/index',['type'=>'unsolved'])}">未结帖</a></li>
                        <li><a href="{:url('index/forum/index',['type'=>'solved'])}">已采纳</a></li>
                        <li><a href="{:url('index/forum/index',['type'=>'wonderful'])}">精华帖</a></li>
                        {notempty name="user.id"}
                        <li><a href="{:url('index/user/index')}">我的帖</a></li>
                        {/notempty}
                    </ul>
                </div>
                <i class="layui-icon fly-search"></i></div>
            {notempty name="topList"}
            <ul class="fly-list fly-list-top">
                <!--置顶列表-->
                {volist name="topList" id="vo"}
                <li class="fly-list-li">
                    <a href="{:url('index/user/home',['uid'=>$vo.uid])}" class="fly-list-avatar">
                        <img src="{$vo.avatar}" alt="{$vo.username}">
                    </a>
                    <h2 class="fly-tip">
                        <a href="{:url('index/forum/detail',['tid'=>$vo.id])}">{$vo.title}</a>
                        {eq name="vo.top" value="1"}<span class="fly-tip-stick">置顶</span>{/eq}
                        {eq name="vo.elite" value="1"}<span class="fly-tip-jing">精帖</span>{/eq}
                    </h2>
                    <p>
                        <span><a href="{:url('index/user/home',['uid'=>$vo.uid])}">{$vo.username}</a></span>
                        <span>{$vo.add_time}</span>
                        <span>{$vo.catename}</span>
                        <span class="fly-list-hint">
              <i class="iconfont" title="回答">&#xe60c;</i> {$vo.reply}
              <i class="iconfont" title="人气">&#xe60b;</i> {$vo.view}
            </span>
                    </p>
                </li>
                {/volist}
            </ul>
            {/notempty}
            <ul class="fly-panel fly-list">
                <!--首页列表-->
                {volist name="list" id="vo"}
                <li class="fly-list-li">
                    <a href="{:url('index/user/home',['uid'=>$vo.uid])}" class="fly-list-avatar">
                        <img src="{$vo.avatar}" alt="{$vo.username}">
                    </a>
                    <h2 class="fly-tip">
                        <a href="{:url('index/forum/detail',['tid'=>$vo.id])}">{$vo.title}</a>
                        {eq name="vo.top" value="1"}<span class="fly-tip-stick">置顶</span>{/eq}
                        {eq name="vo.elite" value="1"}<span class="fly-tip-jing">精帖</span>{/eq}
                    </h2>
                    <p>
                        <span><a href="{:url('index/user/home',['uid'=>$vo.uid])}">{$vo.username}</a></span>
                        <span>{$vo.add_time}</span>
                        <span>{$vo.catename}</span>
                        <span class="fly-list-hint">
              <i class="iconfont" title="回答">&#xe60c;</i> {$vo.reply}
              <i class="iconfont" title="人气">&#xe60b;</i> {$vo.view}
            </span>
                    </p>
                </li>
                {/volist}
            </ul>
            {eq name="more" value="1"}
            <div style="text-align: center">
                <div class="laypage-main">
                    <a href="#" class="laypage-next">更多求解</a>
                </div>
            </div>
            {/eq}
        </div>
    </div>

    <div class="edge">
        <div class="jie-add"><a href="{:url('index/forum/add')}" class="layui-btn layui-btn-big">发表新帖</a> <a
                href="{:url('admin/index/index')}" target="_blank" class="layui-btn layui-btn-big layui-btn-normal"
                style="margin-left: 10px;">进入后台</a></div>
        <div class="fly-panel leifeng-rank">
            <h3 class="fly-panel-title">近一月回答榜 - TOP 12</h3>
            <dl>
                {volist name="monthUser" id="vo"}
                <dd>
                    <a href="{:url('index/user/home',['uid'=>$vo.uid])}">
                        <img src="{$vo.avatar}" alt="{$vo.username}">
                        <cite>{$vo.username}</cite>
                        <i>{$vo.reply}次回答</i>
                    </a>
                </dd>
                {/volist}
            </dl>
        </div>
        <div class="fly-panel">
            <div style="padding: 20px;"><p>本程序采用ThinkPHP5开发，免费开源用于新手练习及学习使用，但后台功能不开源，如果需要后台源码及模板请提供赞助。<a href="#" target="_blank" class="fly-link">去支持&gt;&gt;</a></p>
            </div>
        </div>
       <!-- <div class="fly-panel"><a href="http://layim.layui.com/?from=fly" target="_blank"> <img
                src="http://cdn.layui.com/upload/2017_7/168_1500291753257_18702.jpg"
                style="width: 336px; height: 166px;" alt="layim下载"> </a></div>-->
        <!--<dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">最近热帖</dt>
            <dd>
                <a href="jie/detail.html">使用 layui 秒搭后台大布局（基本结构）</a>
                <span><i class="iconfont">&#xe60b;</i> 6087</span>
            </dd>
            <dd>
                <a href="jie/detail.html">Java实现LayIM后端的核心代码</a>
                <span><i class="iconfont">&#xe60b;</i> 767</span>
            </dd>
            <dd>
                <a href="jie/detail.html">使用 layui 秒搭后台大布局（基本结构）</a>
                <span><i class="iconfont">&#xe60b;</i> 6087</span>
            </dd>
            <dd>
                <a href="jie/detail.html">Java实现LayIM后端的核心代码</a>
                <span><i class="iconfont">&#xe60b;</i> 767</span>
            </dd>
            <dd>
                <a href="jie/detail.html">使用 layui 秒搭后台大布局（基本结构）</a>
                <span><i class="iconfont">&#xe60b;</i> 6087</span>
            </dd>
            <dd>
                <a href="jie/detail.html">Java实现LayIM后端的核心代码</a>
                <span><i class="iconfont">&#xe60b;</i> 767</span>
            </dd>
            <dd>
                <a href="jie/detail.html">使用 layui 秒搭后台大布局（基本结构）</a>
                <span><i class="iconfont">&#xe60b;</i> 6087</span>
            </dd>
            <dd>
                <a href="jie/detail.html">Java实现LayIM后端的核心代码</a>
                <span><i class="iconfont">&#xe60b;</i> 767</span>
            </dd>
        </dl>-->

        <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">近期热议</dt>
            {volist name="nearList" id="vo"}
            <dd>
                <a href="{:url('index/forum/detail',['tid'=>$vo.id])}">{$vo.title}</a>
                <span><i class="iconfont">&#xe60c;</i> {$vo.view}</span>
            </dd>
            {/volist}
        </dl>

        <div class="fly-panel fly-link">
            <h3 class="fly-panel-title">友情链接</h3>
            <dl>
                <dd>
                    <a href="http://www.layui.com/" target="_blank">layui</a>
                </dd>
                <dd>
                    <a href="http://layim.layui.com/" target="_blank">LayIM</a>
                </dd>
                <dd>
                    <a href="http://layer.layui.com/" target="_blank">layer</a>
                </dd>
            </dl>
        </div>


    </div>
</div>
{include file="common/footer" /}